/** <a href="http://www.cpupk.com/decompiler">Eclipse Class Decompiler</a> plugin, Copyright (c) 2017 Chen Chao. **/
package com.minierp.dao.hibernate;

import com.minierp.dao.SmsCountDao;
import com.minierp.dao.hibernate.BaseDaoImpl;
import com.minierp.model.SmsCount;
import java.util.List;

public class SmsCountDaoImpl extends BaseDaoImpl implements SmsCountDao {
	public SmsCount get(int year, int month, long stafferId) {
		String sql = "from com.minierp.model.SmsCount c where c.year=" + year
				+ " and c.month=" + month + " and c.stafferId=" + stafferId;
		List list = this.getHibernateTemplate().find(sql);
		return list.isEmpty() ? null : (SmsCount) list.get(0);
	}
}